import request from '@/utils/request'

export function listtsSupplier(query) {
  return request({
    url: '/purchase/tsSupplier/list',
    method: 'get',
    params: query
  })
}

export function createtsSupplier(data) {
  return request({
    url: '/purchase/tsSupplier/create',
    method: 'post',
    data
  })
}

export function readtsSupplier(data) {
  return request({
    url: '/purchase/tsSupplier/get/' + data.id,
    method: 'get'
  })
}

export function updatetsSupplier(data) {
  return request({
    url: '/purchase/tsSupplier/update',
    method: 'post',
    data
  })
}

export function deletetsSupplier(data) {
  return request({
    url: '/purchase/tsSupplier/delete/' + data.fsupno,
    method: 'delete'
  })
}
